<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<link href="stylesheets/style.css" rel="stylesheet" type="text/css"/>
<link href="stylesheets/winter.css" rel="stylesheet" type="text/css" />

<!-- Loading Calendar JavaScript files -->
<script type="text/javascript" src="js/zapatec.js"></script>
<script type="text/javascript" src="js/calendar.js"></script>
<!-- Loading language definition file -->
<script type="text/javascript" src="js/calendar-en.js"></script>
    
    
<script type="text/javascript">
	function getPublishDate(){
		
	}
</script>

<div id="joint_c1">
<div id="listline_r"><div id="line_list"><span class="bx_tit"><img src="images/icon_6.gif" align="absmiddle" style="padding:0px 5px" />Send Wishes</span></div></div>


<form:form modelAttribute="wishes" action="wishesentry.html" enctype="multipart/form-data"	>

<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Name : *</div>
<div id="nwuser_c2">
		<form:input path="fullnameWhomTo" size="30" cssErrorClass="form-error-field" />
		<div class="form-error-message"><form:errors path="fullnameWhomTo" /></div>
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Date to be published : *</div>
<div id="nwuser_c2">
		<form:input path="publishDateString" size="10" cssErrorClass="form-error-field"/>
		<input value="Select Date" id="trigger" type="button"/>
		<div class="form-error-message"><form:errors path="publishDateString" /></div>
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Wish Type : *</div>
<div id="nwuser_c2">
							<form:select path="subject" size="1" cssErrorClass="form-error-field">
							 	<option>Greetings</option>
								<option>Birth Day</option>
								<option>Anniversaries</option>
								<option>Congratulations</option>
								<option>Achievements</option>
							</form:select> 
		<div class="form-error-message"><form:errors path="subject" /></div>	
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Please write the wishes here : *</div>
<div id="nwuser_c2">
		<form:textarea  path="message" cols="40" rows="9" cssErrorClass="form-error-field"></form:textarea>
		<div class="form-error-message"><form:errors path="message" /></div>
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Update the photo/image : *</div>
<div id="nwuser_c2">
		<input type="file" name="multipartFile" cssErrorClass="form-error-field"/>
		<div class="form-error-message"><form:errors path="multipartFile" /></div>
</div>
</div>




<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Name : *</div>
<div id="nwuser_c2">
		<form:input path="fullnameWhoIs" size="30" cssErrorClass="form-error-field"/>
		<div class="form-error-message"><form:errors path="fullnameWhoIs" /></div>
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Residency : *</div>
<div id="nwuser_c2">
		<form:input path="nativePlace" size="30" cssErrorClass="form-error-field"/>
		<div class="form-error-message"><form:errors path="nativePlace" /></div>
</div>
</div>


<div id="nwusesr_r">
  <div align="center">
  <INPUT onclick="return validate_frm()" type=image src="images/submit.gif" width="98" height="31" border="0" > 
  </div>
</div>

</form:form>
</div>

<script type="text/javascript">//<![CDATA[
			      Zapatec.Calendar.setup({
			        firstDay          : 1,
			        electric          : false,
			        inputField        : "publishDateString",
			        button            : "trigger",
			        ifFormat          : "%d/%m/%Y",
			        daFormat          : "%d/%m/%Y"
			        
			      });
			    //]]>
</script>
						
